// Package logger is a simple logging interface with three different types of
// log messages that can be enabled via the 3 variables LogInfo, LogWarn, and
// LogDebug.
package logger

import "log"

var (
	LogInfo  = true
	LogWarn  = false
	LogDebug = false
)

func Infof(s string, args ...any) {
	if LogInfo {
		log.Printf(s, args...)
	}
}

func Debugf(s string, args ...any) {
	if LogDebug {
		log.Printf(s, args...)
	}
}

func Warnf(s string, args ...any) {
	if LogWarn {
		log.Printf(s, args...)
	}
}

func Info(args ...any) {
	if LogInfo {
		log.Println(args...)
	}
}

func Warn(args ...any) {
	if LogWarn {
		log.Println(args...)
	}
}

func Debug(args ...any) {
	if LogDebug {
		log.Println(args...)
	}
}

func Fatal(args ...any) {
	log.Fatalln(args...)
}

func Fatalf(s string, args ...any) {
	log.Fatalf(s, args...)
}
